
package com.hc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hc.dao.IIndexDataDao;
import com.hc.domain.IndexData;
import com.hc.service.IIndexDataService;
@Service("indexDataService")
public class IndexDataServiceImpl implements IIndexDataService {
	@Resource
	private IIndexDataDao indexDataDao;

	@Override
	public IndexData getById(int id) {
		return indexDataDao.getById(id);
		
	}

	@Override
	public void saveOrUpdate(IndexData idata) {
		indexDataDao.UpdateOrSave(idata);
	}

	@Override
	public List<IndexData> findDatas() {
		return indexDataDao.findDatas();
		
	}

}

